import requests
req = requests.get('http://www.baidu.com')
req.encoding = 'utf-8'
print(req.text)